package com.ld.security.server.admin.modules.ge.vo;

import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.*;

import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.server.admin.modules.ge.entity.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class GeViewSaveVo implements SuperVo {

    private String id;

    private String allId="-1";

    @ApiModelProperty("视图")
    @QueryKey
    @RemoveKey
    @SqlKey(name = "id",valueField = "id")
    @SaveKey
    private GeViewEntity view;

    @SaveKey(name = "viewId",valueField = "view.id")
    @RemoveKey
    @ApiModelProperty("模型")
    @QueryKey
    @SqlKey(name = "viewId",valueField = "view.id")
    private List<GeModelEntity> models;


    @SaveKey(name = "viewId",valueField = "view.id")
    @RemoveKey
    @ApiModelProperty("视图函数")
    @QueryKey
    @SqlKey(name = "viewId",valueField = "id")
    private List<GeFuncEntity> viewFuncs;


    @SaveKey(name = "viewId",valueField = "view.id")
    @RemoveKey
    @ApiModelProperty("输入组件列表")
    @QueryKey
    @SqlKey(name = "viewId",valueField = "id")
    private List<GeCompEntity> comps;





    @ApiModelProperty("模型模板")
    @QueryKey
    @SqlKey(name = "viewTelId",valueField = "view.viewTelId")
    private List<GeModelTelEntity> modelTels;


    @ApiModelProperty("函数模板")
    @QueryKey
    @SqlKey(name = "viewTelId",valueField = "view.viewTelId")
    private List<GeFuncTelEntity> funcTels;

    @ApiModelProperty("组件模板列表")
    @QueryKey
    @SqlKeys
    private List<GeCompTelEntity> compTels;




}
